package com.example.chuzhou.constans;

import java.util.HashMap;
import java.util.Map;

public interface CommonConstans {

    /**
     * 统一认证接口ip
     */
    //     String IP = "http://10.150.148.114:8091"; //生产环境 内网调用
    String IP = "http://223.244.255.92:18001"; //本地环境调用
    //     String IP = "http://10.150.148.12:8091"; //测试环境 内网调用

    /**
     * 自定义 前端 存Cookie 用来删除登录状态
     */
    String SESSION_KEY = "SESSION_ID";

    /*
     *用户未登录 返回码 -1
     */
    Integer NO_LOGIN = -1;

    String OPERTYPE_LOGIN = "login";
    String OPERTYPE_LOGOUT = "logout";
    String OPERTYPE_ADD = "add";
    String OPERTYPE_QUERY = "query";
    String OPERTYPE_UPDATE = "update";
    String OPERTYPE_DELETE = "delete";


    Map<String, String> logMap = new HashMap() {{
        put("login", "用户名+密码登录");
        put("logout", "用户登出");
        put("getUserInfo", "获取用户信息");
        put("getSystemList", "获取子系统列表");
        put("getAuth", "获取授权码");
        put("searchNeedChangeSec", "查询是否需要修改密码");
        put("smsLogin", "用户名+密码+短信验证码登录");
        put("sendSms", "发送短信验证码");
        put("changSec", "修改密码");
        put("catoken", "UKey登录");
        put("msgList", "获取站内信");
        put("changeMsgStatus", "站内信状态变更");
    }};
}
